﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
					xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
					xmlns:Chapter10="clr-namespace:FSharp.Chapter10;assembly=FSharpLibrary">
	<LinearGradientBrush x:Key="AeroBackgroundBrush"
						 StartPoint="0,0"
						 EndPoint="0,1">
		<GradientStop Offset="0"
					  Color="#7d7e7d" />
		<GradientStop Offset="1"
					  Color="#0e0e0e" />
	</LinearGradientBrush>
	<SolidColorBrush x:Key="AeroBorderBrush"
					 Color="Black" />

	<Style x:Key="{x:Type Chapter10:SkinThemeControl}"
		   TargetType="Chapter10:SkinThemeControl">
		<Setter Property="Background"
				Value="{StaticResource AeroBackgroundBrush}" />
		<Setter Property="BorderBrush"
				Value="{StaticResource AeroBorderBrush}" />
		<Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="Chapter10:SkinThemeControl">
					<Grid>
						<Border Background="{TemplateBinding Background}"
								BorderBrush="{TemplateBinding BorderBrush}"
								BorderThickness="1"
								CornerRadius="5"
								Padding="5">
							<ContentPresenter Content="{TemplateBinding Content}"
											  ContentTemplate="{TemplateBinding ContentTemplate}" />
						</Border>
						<TextBlock Foreground="GhostWhite"
								   FontSize="18"
								   HorizontalAlignment="Center">Aero Theme</TextBlock>

					</Grid>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>